package de.neusta.android.entity;

import android.app.Activity;

/**
 * Created by dzebcuks on 24.01.14.
 */
public class Attribute extends Activity{

    private Class type;

    private String name;

    private CollectionType collectionType;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Class getType() {
        return type;
    }

    public void setType(Class type) {
        this.type = type;
    }

    public CollectionType getCollectionType() {
        return collectionType;
    }

    public void setCollectionType(CollectionType collectionType) {
        this.collectionType = collectionType;
    }

    public boolean isCollection(){
        boolean isCollection = false;
        if(this.getCollectionType() == null){
            isCollection = true;
        }
        return isCollection;
    }
}
